<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理 - 易买网</title>
<link type="text/css" rel="stylesheet" href="../resources/css/style.css" />
<script type="text/javascript" src="../resources/scripts/function-manage.js"></script>
</head>
<body>
<div id="header" class="wrap">
	<div id="logo"><img src="../resources/images/logo.gif" /></div>
	<div class="help"><a href="../index.html">返回前台页面</a></div>
	<div class="navbar">
		<ul class="clearfix">
			<li><a href="index.html">首页</a></li>
			<li><a href="user.html">用户</a></li>
			<li><a href="product.html">商品</a></li>
			<li class="current"><a href="order.html">订单</a></li>
			<li><a href="guestbook.html">留言</a></li>
			<li><a href="news.html">新闻</a></li>
		</ul>
	</div>
</div>
<div id="childNav">
	<div class="welcome wrap">
		管理员pillys您好，今天是2012-12-21，欢迎回到管理后台。
	</div>
</div>
<div id="position" class="wrap">
	您现在的位置：<a href="index.html">易买网</a> &gt; 管理后台
</div>
<div id="main" class="wrap">
	<div id="menu-mng" class="lefter">
		<div class="box">
			<dl>
				<dt>用户管理</dt>
				<dd><em><a href="user-add.html">新增</a></em><a href="user.html">用户管理</a></dd>
				<dt>商品信息</dt>
				<dd><em><a href="productClass-add.html">新增</a></em><a href="productClass.html">分类管理</a></dd>
				<dd><em><a href="product-add.html">新增</a></em><a href="product.html">商品管理</a></dd>
				<dt>订单管理</dt>
				<dd><a href="order.html">订单管理</a></dd>
				<dt>留言管理</dt>
				<dd><a href="guestbook.html">留言管理</a></dd>
				<dt>新闻管理</dt>
				<dd><em><a href="news-add.html">新增</a></em><a href="news.html">新闻管理</a></dd>
			</dl>
		</div>
	</div>
	<div class="main">
		<h2>订单管理</h2>
		<div class="manage">
			<div class="search">
				<form method="post" action="aa">
					订单号：<input type="text" class="text" name="oid" value="${oid }"/> 用户ID：<input type="text" class="text" name="uid" value="${uid }" /> <label class="ui-blue"><input type="submit" name="submit" value="查询" /></label>
				</form>
				
				<a href="">哈哈</a>
			</div>
			<div class="spacer"></div>
			<table class="list" border="1">
				<tr>
					<th>ID</th>
					<th>订单号</th>
					<th>用户ID</th>
					<th>下单时间</th>
					<th>收件地址</th>
					<th>订单状态</th>
					<th>商品名称</th>
					<th>商品单价</th>
					<th>商品数量</th>
					<th>商品总价</th>
					
					<th>操作</th>
				</tr>
				
				<c:forEach var="od" items="${orders}">
					<tr>
					<td class="first w4 c">1</td>
					<td class="w1 c">${od.orderId }</td>
					<td class="w1 c">${od.userId }</td>
					<td class="w1 c">${od.createtime }</td>
					<td  class="w1 c" >${od.address }</td>
					<td class="w1 c">下单状态</td>
					<td class="w1 c">${od.goodsId }</td>
					<td class="w1 c">商品单价</td>
					<td class="w1 c">商品数量</td>
					<td class="w1 c">${od.totalPrice }</td>
					<td class="w1 c"><a href="order-modify.html">修改</a> <a href="javascript:Delete(1);">删除</a></td>
				</tr>
				</c:forEach>
				<tr>
					<td colspan="11" ><h1 ><font color="red">${msg }</font></h1></td>
				</tr>
				
			</table>
			<div class="pager">
				<ul class="clearfix">
					<li><a href="#">上一页</a></li>
					<li class="current">1</li>
					<li><a href="#">2</a></li>
					<li><a href="#">3</a></li>
					<li><a href="#">4</a></li>
					<li><a href="#">5</a></li>
					<li><a href="#">下一页</a></li>
				</ul>
			</div>
		</div>
	</div>
	<div class="clear"></div>
</div>
<div id="footer">
	Copyright &copy; 2017 爱苗科技 All Rights Reserved. 皖ICP证000001号
</div>
</body>
</html>
